//
//  XJFeatureItemModel.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/5/9.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XJFeatureItemModel : NSObject
/**具体详细的规格信息*/
@property(nonatomic, copy) NSString *infoname;
/**附加价格*/
@property(nonatomic, copy) NSString *plusePrice;
/**用于标记该`item`是否被选中*/
@property(nonatomic, assign) BOOL isSelect;



// 5-18 改造
/**1.详细规格id 需要转换 不同分类下的规格id组合--》判断库存数量*/
@property (nonatomic, copy) NSString *guigeId;
/**2.规格名字*/
@property (nonatomic, copy) NSString *name;

@end

#pragma mark - 参考数据
/**
 
 {
 "code": 0,
 "data": {
 "goods_info": {
 "goods": {
 "id": 69,
 "code": "152222",
 "name": "土豆",
 "shop_id": 5,
 "description": "<p>123456</p>",
 "cover": "http://static.zertone1.com/mc7mvD1AwUEys0oQxELF4Sw4NbyTwOkm.jpg",
 "images": "http://static.zertone1.com/qlq7KzLP7XS5MvQnwfQr7fhogrRjJfUs.jpg,http://static.zertone1.com/eEGML6VgJFz5aAN8DZh0Zs3O6qika2ga.jpg",
 "category_id": 8,
 "price": 10.0,
 "cost_price": 0.0,
 "market_price": 15.0,
 "dispatch_fee": 0.0,
 "dispatch_type": 0,
 "dispatch_id": 0,
 "weight": 0.0,
 "stock": 1000,
 "sale_count": 0,
 "create_time": 1524820854650,
 "click_count": 0,
 "date_on_sale": 1524901045887,
 "active": 1,
 "on_sale": 1,
 "is_delete": 0,
 "is_recommend": 0,
 "offsale_time": 1524901047732,
 "goods_type": 1,
 "scekill_status": 0,
 "audit_status": 2,
 "praise_rate": 0.0,
 "comment_count": 0,
 "pay_count": 0,
 "praise_count": 0,
 "shop_name": "石原里美",
 "category_name": "土豆",
 "free_goods_amount": 15.0
 },
 "goods_options": [{
 "id": 102,
 "goods_id": 69,
 "name": "80g+蓝色",
 "price": 10.0,
 "market_price": 2.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 1,
 "specs": "137_140"
 }, {
 "id": 103,
 "goods_id": 69,
 "name": "80g+绿色",
 "price": 9.0,
 "market_price": 3.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 2,
 "specs": "137_141"
 }, {
 "id": 104,
 "goods_id": 69,
 "name": "80g+紫色",
 "price": 8.0,
 "market_price": 4.0,
 "stock": 133,
 "weight": 0.1,
 "sort": 3,
 "specs": "137_142"
 }, {
 "id": 105,
 "goods_id": 69,
 "name": "100g+蓝色",
 "price": 7.0,
 "market_price": 5.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 4,
 "specs": "138_140"
 }, {
 "id": 106,
 "goods_id": 69,
 "name": "100g+绿色",
 "price": 6.0,
 "market_price": 6.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 5,
 "specs": "138_141"
 }, {
 "id": 107,
 "goods_id": 69,
 "name": "100g+紫色",
 "price": 5.0,
 "market_price": 7.0,
 "stock": 133,
 "weight": 0.1,
 "sort": 6,
 "specs": "138_142"
 }, {
 "id": 108,
 "goods_id": 69,
 "name": "150g+蓝色",
 "price": 4.0,
 "market_price": 8.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 7,
 "specs": "139_140"
 }, {
 "id": 109,
 "goods_id": 69,
 "name": "150g+绿色",
 "price": 3.0,
 "market_price": 9.0,
 "stock": 100,
 "weight": 0.1,
 "sort": 8,
 "specs": "139_141"
 }, {
 "id": 110,
 "goods_id": 69,
 "name": "150g+紫色",
 "price": 2.0,
 "market_price": 10.0,
 "stock": 134,
 "weight": 0.1,
 "sort": 9,
 "specs": "139_142"
 }],
 "description": "http://192.168.31.177:8080/goods/desc/69",
 "comment": null,
 "express": "消费满15.0元免运费;距商家1.0km以内,运费:¥2.0;距离商家1.0km-2.0km之间:运费:¥3.0;距离商家2.0km-3.0km之间,运费:¥4.0;",
 "is_collection": 1,
 "spec": [{
 "id": 63,
 "goods_id": 69,
 "name": "重量",
 "content": "[137,138,139]",
 "sort": 1,
 "items": [{
 "id": 137,
 "name": "80g",
 "sort": 1
 }, {
 "id": 138,
 "name": "100g",
 "sort": 2
 }, {
 "id": 139,
 "name": "150g",
 "sort": 3
 }]
 }, {
 "id": 64,
 "goods_id": 69,
 "name": "颜色",
 "content": "[140,141,142]",
 "sort": 2,
 "items": [{
 "id": 140,
 "name": "蓝色",
 "sort": 1
 }, {
 "id": 141,
 "name": "绿色",
 "sort": 2
 }, {
 "id": 142,
 "name": "紫色",
 "sort": 3
 }]
 }]
 }
 }
 }
 
 */
